package com.sanyang.lawyer.service.adm;

import com.sanyang.lawyer.entity.Adm_Espress;
import com.sanyang.lawyer.mapper.adm.AdmEspressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: lawyer
 * @description: 类型的Service层
 * @author: Mr.Wang
 * @create: 2019-10-23 10:07
 **/

@Service
public class AdmEspressService {

    @Autowired
    private AdmEspressMapper espressMapper;

    public List<Adm_Espress> listall(){
        return espressMapper.listall();
    }

    public List<Adm_Espress> espressfurry(String espressfu){
        return espressMapper.espressfurry(espressfu);
    }

    public Adm_Espress getbyid(int id){
        return espressMapper.getbyid(id);
    }

    public void insert(Adm_Espress admEspress){
        this.espressMapper.insert(admEspress);
    }

    public void delete(int id){
        this.espressMapper.delete(id);
    }
}
